/**
* @file				Buzzer.c
* @author  		Milinda Seneviratne
* @version 		1.0
* @date    		November 17th, 2014
* @brief   		Template BUZZER.
*/
/* Includes ------------------------------------------------------------------*/
#include <stdio.h>
#include "arduino.h"
#include <PushButton.h>
#include <PIR.h>
#include <LED.h>


/* Private typedef -----------------------------------------------------------*/
typedef int bool;
#define true 1
#define false 0
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/


int buzzerAlarm()
	{
		int LEDstatus = getLEDstatus();
		
		if(LEDstatus==1)
			{
				if(getPIRstatus()==1)
					{
						digitalWrite(6,HIGH); //Pin B8
					}
			}
			
	}
		
